f=open("problem 13.txt",'r')
S=f.read()
S=S.split("\n")
S=[int(i) for i in S]
print sum(S)